import React from 'react';
import ChargePay from "./ChargePay";
export default class ChargeDetail extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            kk:"",
            id :0,
            value:500
        }
    }
    reCode=(event)=>{
      var ss = this.state.kk;
      alert(ss)
    }

    render(){
        return(
            <div>
                <ul className="charge-detail">
                    <li>
                        <span>充值账户：</span>
                        <span>{this.props.account}</span>
                    </li>
                    <li>
                        <span>支付方式：</span>
                        <span>支付宝支付</span>
                    </li>
                    <li>
                        <span>推荐人号码:</span>
                        <input type="text" placeholder="请输入四位推荐码"  />
                    </li>
                </ul>
                <ChargePay id={this.state.id} money={this.state.value} dd={this.reCode} />
            </div>
        )
    }
}
